package com.acme.task5;

public class TextModifier {
	public static void main(String[] args) {	
		String str = null;
		if(args.length != 0)
			str = args[0];
		else
			return;
		StringBuffer stb = new StringBuffer(str);
		for (int i = 0; i < stb.length(); i++) {
			char charAtIndex = stb.charAt(i);
			if(Character.isDigit(charAtIndex))
				stb.deleteCharAt(i--);
			if(charAtIndex == '+' || charAtIndex == '-')
				stb.insert(i++, charAtIndex);
		}
		System.out.println(stb.toString());
	}
}
